package com.example.testdockerboot;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/test")
public class TestApi {
    @GetMapping("/demo")
    public String demotest(){
        log.info("测试访问了/test/demo");
        return "2021-docker-springboot is running!";
    }


    @GetMapping("/t2")
    public String t2(){
        log.info("测试访问了/test/t2");
        return "2021-测试接口test!";
    }
}
